home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 1263 / sxtnview.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-04-18  |  33.1 KB  |  781 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Appearance      =   0  'Flat
  4.    BackColor       =   &H00FFFF00&
  5.    BorderStyle     =   1  'Fixed Single
  6.    Caption         =   "SXTN Viewer (v1.09) - Copyright 
  7.  1994-1996 by J.M."
  8.    ClientHeight    =   6420
  9.    ClientLeft      =   1065
  10.    ClientTop       =   1500
  11.    ClientWidth     =   7080
  12.    ClipControls    =   0   'False
  13.    BeginProperty Font 
  14.       name            =   "MS Sans Serif"
  15.       charset         =   1
  16.       weight          =   700
  17.       size            =   8.25
  18.       underline       =   0   'False
  19.       italic          =   0   'False
  20.       strikethrough   =   0   'False
  21.    EndProperty
  22.    ForeColor       =   &H80000008&
  23.    Height          =   6825
  24.    Icon            =   "SXTNVIEW.frx":0000
  25.    Left            =   1005
  26.    LinkTopic       =   "Form1"
  27.    MaxButton       =   0   'False
  28.    MinButton       =   0   'False
  29.    ScaleHeight     =   6420
  30.    ScaleWidth      =   7080
  31.    Top             =   1155
  32.    Width           =   7200
  33.    Begin VB.CommandButton Command7 
  34.       Appearance      =   0  'Flat
  35.       BackColor       =   &H80000005&
  36.       Caption         =   "Sto&p Action"
  37.       Height          =   375
  38.       Left            =   5160
  39.       TabIndex        =   28
  40.       Top             =   1815
  41.       Width           =   1815
  42.    End
  43.    Begin VB.CommandButton Command6 
  44.       Appearance      =   0  'Flat
  45.       BackColor       =   &H80000005&
  46.       Caption         =   "Get &Called Items"
  47.       Height          =   375
  48.       Left            =   5160
  49.       TabIndex        =   27
  50.       Top             =   2760
  51.       Width           =   1815
  52.    End
  53.    Begin VB.CommandButton Command5 
  54.       Appearance      =   0  'Flat
  55.       BackColor       =   &H80000005&
  56.       Caption         =   "Get &Defined Items"
  57.       Height          =   375
  58.       Left            =   5160
  59.       TabIndex        =   25
  60.       Top             =   3720
  61.       Width           =   1815
  62.    End
  63.    Begin VB.OptionButton Option5 
  64.       Appearance      =   0  'Flat
  65.       BackColor       =   &H00FFFF00&
  66.       Caption         =   "LFT"
  67.       ForeColor       =   &H80000008&
  68.       Height          =   255
  69.       Left            =   4200
  70.       TabIndex        =   24
  71.       Top             =   120
  72.       Width           =   735
  73.    End
  74.    Begin VB.OptionButton Option4 
  75.       Appearance      =   0  'Flat
  76.       BackColor       =   &H00FFFF00&
  77.       Caption         =   "FFT"
  78.       ForeColor       =   &H80000008&
  79.       Height          =   255
  80.       Left            =   3480
  81.       TabIndex        =   19
  82.       Top             =   120
  83.       Width           =   735
  84.    End
  85.    Begin VB.OptionButton Option3 
  86.       Appearance      =   0  'Flat
  87.       BackColor       =   &H00FFFF00&
  88.       Caption         =   "DFT"
  89.       ForeColor       =   &H80000008&
  90.       Height          =   255
  91.       Left            =   2760
  92.       TabIndex        =   18
  93.       Top             =   120
  94.       Width           =   735
  95.    End
  96.    Begin VB.OptionButton Option2 
  97.       Appearance      =   0  'Flat
  98.       BackColor       =   &H00FFFF00&
  99.       Caption         =   "CST"
  100.       ForeColor       =   &H80000008&
  101.       Height          =   255
  102.       Left            =   2040
  103.       TabIndex        =   17
  104.       Top             =   120
  105.       Width           =   735
  106.    End
  107.    Begin VB.OptionButton Option1 
  108.       Appearance      =   0  'Flat
  109.       BackColor       =   &H00FFFF00&
  110.       Caption         =   "CFT"
  111.       ForeColor       =   &H80000008&
  112.       Height          =   255
  113.       Left            =   1320
  114.       TabIndex        =   0
  115.       Top             =   120
  116.       Width           =   735
  117.    End
  118.    Begin VB.CommandButton Command4 
  119.       Appearance      =   0  'Flat
  120.       BackColor       =   &H80000005&
  121.       Caption         =   "Get &All Items"
  122.       Height          =   375
  123.       Left            =   5160
  124.       TabIndex        =   14
  125.       Top             =   3240
  126.       Width           =   1815
  127.    End
  128.    Begin VB.CommandButton Command3 
  129.       Appearance      =   0  'Flat
  130.       BackColor       =   &H80000005&
  131.       Caption         =   "Get &Files"
  132.       Height          =   375
  133.       Left            =   5160
  134.       TabIndex        =   16
  135.       Top             =   4920
  136.       Width           =   1815
  137.    End
  138.    Begin VB.ListBox List2 
  139.       Appearance      =   0  'Flat
  140.       Height          =   1395
  141.       Left            =   120
  142.       TabIndex        =   12
  143.       Top             =   4920
  144.       Width           =   4935
  145.    End
  146.    Begin VB.ListBox List1 
  147.       Appearance      =   0  'Flat
  148.       Height          =   1395
  149.       Left            =   120
  150.       TabIndex        =   10
  151.       Top             =   3240
  152.       Width           =   4935
  153.    End
  154.    Begin VB.CommandButton Command2 
  155.       Appearance      =   0  'Flat
  156.       BackColor       =   &H80000005&
  157.       Caption         =   "&Search item"
  158.       Height          =   375
  159.       Left            =   5160
  160.       TabIndex        =   9
  161.       Top             =   2295
  162.       Width           =   1815
  163.    End
  164.    Begin VB.TextBox Text1 
  165.       Appearance      =   0  'Flat
  166.       Height          =   285
  167.       Left            =   1200
  168.       TabIndex        =   7
  169.       Top             =   2280
  170.       Width           =   3855
  171.    End
  172.    Begin VB.CommandButton Command1 
  173.       Appearance      =   0  'Flat
  174.       BackColor       =   &H80000005&
  175.       Caption         =   "E&xit"
  176.       Height          =   500
  177.       Left            =   5175
  178.       TabIndex        =   4
  179.       Top             =   105
  180.       Width           =   1815
  181.    End
  182.    Begin VB.FileListBox File1 
  183.       Appearance      =   0  'Flat
  184.       Height          =   1395
  185.       Left            =   120
  186.       Pattern         =   "*.dbf"
  187.       TabIndex        =   2
  188.       Top             =   720
  189.       Width           =   2175
  190.    End
  191.    Begin VB.DirListBox Dir1 
  192.       Appearance      =   0  'Flat
  193.       Height          =   1155
  194.       Left            =   2400
  195.       TabIndex        =   1
  196.       Top             =   1080
  197.       Width           =   2655
  198.    End
  199.    Begin VB.DriveListBox Drive1 
  200.       Appearance      =   0  'Flat
  201.       Height          =   315
  202.       Left            =   2400
  203.       TabIndex        =   20
  204.       Top             =   720
  205.       Width           =   2655
  206.    End
  207.    Begin VB.Label Label11 
  208.       Appearance      =   0  'Flat
  209.       BackColor       =   &H80000005&
  210.       BackStyle       =   0  'Transparent
  211.       Caption         =   "Select database from file dialog"
  212.       ForeColor       =   &H80000008&
  213.       Height          =   495
  214.       Left            =   5190
  215.       TabIndex        =   26
  216.       Top             =   735
  217.       Width           =   1455
  218.    End
  219.    Begin VB.Label Label10 
  220.       Appearance      =   0  'Flat
  221.       BackColor       =   &H80000005&
  222.       BackStyle       =   0  'Transparent
  223.       Caption         =   "Double click on file to show file contents"
  224.       ForeColor       =   &H80000008&
  225.       Height          =   495
  226.       Left            =   5160
  227.       TabIndex        =   23
  228.       Top             =   5400
  229.       Width           =   1815
  230.    End
  231.    Begin VB.Label Label9 
  232.       Appearance      =   0  'Flat
  233.       BackColor       =   &H80000005&
  234.       BackStyle       =   0  'Transparent
  235.       Caption         =   "Double click on item to get location"
  236.       ForeColor       =   &H80000008&
  237.       Height          =   495
  238.       Left            =   5160
  239.       TabIndex        =   22
  240.       Top             =   4200
  241.       Width           =   1815
  242.    End
  243.    Begin VB.Label Label8 
  244.       Appearance      =   0  'Flat
  245.       BackColor       =   &H00FFFF00&
  246.       BackStyle       =   0  'Transparent
  247.       Caption         =   "SXTN-Type"
  248.       ForeColor       =   &H80000008&
  249.       Height          =   255
  250.       Left            =   120
  251.       TabIndex        =   21
  252.       Top             =   120
  253.       Width           =   1095
  254.    End
  255.    Begin VB.Label Label7 
  256.       Appearance      =   0  'Flat
  257.       BackColor       =   &H80000005&
  258.       BorderStyle     =   1  'Fixed Single
  259.       ForeColor       =   &H80000008&
  260.       Height          =   255
  261.       Left            =   1200
  262.       TabIndex        =   15
  263.       Top             =   2640
  264.       Width           =   3855
  265.    End
  266.    Begin VB.Label Label6 
  267.       Appearance      =   0  'Flat
  268.       BackColor       =   &H80000005&
  269.       BackStyle       =   0  'Transparent
  270.       Caption         =   "Files"
  271.       ForeColor       =   &H80000008&
  272.       Height          =   255
  273.       Left            =   120
  274.       TabIndex        =   13
  275.       Top             =   4680
  276.       Width           =   4935
  277.    End
  278.    Begin VB.Label Label5 
  279.       Appearance      =   0  'Flat
  280.       BackColor       =   &H80000005&
  281.       BackStyle       =   0  'Transparent
  282.       Caption         =   "Items"
  283.       ForeColor       =   &H80000008&
  284.       Height          =   255
  285.       Left            =   120
  286.       TabIndex        =   11
  287.       Top             =   3000
  288.       Width           =   4935
  289.    End
  290.    Begin VB.Label Label4 
  291.       Appearance      =   0  'Flat
  292.       BackColor       =   &H80000005&
  293.       BackStyle       =   0  'Transparent
  294.       Caption         =   "File/Line"
  295.       ForeColor       =   &H80000008&
  296.       Height          =   255
  297.       Left            =   120
  298.       TabIndex        =   8
  299.       Top             =   2640
  300.       Width           =   975
  301.    End
  302.    Begin VB.Label Label3 
  303.       Appearance      =   0  'Flat
  304.       BackColor       =   &H80000005&
  305.       BackStyle       =   0  'Transparent
  306.       Caption         =   "Search for"
  307.       ForeColor       =   &H80000008&
  308.       Height          =   255
  309.       Left            =   120
  310.       TabIndex        =   6
  311.       Top             =   2280
  312.       Width           =   975
  313.    End
  314.    Begin VB.Label Label2 
  315.       Appearance      =   0  'Flat
  316.       BackColor       =   &H80000005&
  317.       BackStyle       =   0  'Transparent
  318.       Caption         =   "Database:"
  319.       ForeColor       =   &H80000008&
  320.       Height          =   255
  321.       Left            =   120
  322.       TabIndex        =   5
  323.       Top             =   480
  324.       Width           =   855
  325.    End
  326.    Begin VB.Label Label1 
  327.       Appearance      =   0  'Flat
  328.       BackColor       =   &H00FFFFFF&
  329.       BackStyle       =   0  'Transparent
  330.       ForeColor       =   &H80000008&
  331.       Height          =   255
  332.       Left            =   1080
  333.       TabIndex        =   3
  334.       Top             =   480
  335.       Width           =   3975
  336.    End
  337. Attribute VB_Name = "Form1"
  338. Attribute VB_Creatable = False
  339. Attribute VB_Exposed = False
  340. '/***************************************************************************/
  341. '    Copyright (C) Juergen Mueller (J.M.) 1994-1996
  342. '    All rights reserved.
  343. '    You are expressly prohibited from selling this software in any form,
  344. '    distributing it with another product, or removing this notice.
  345. '    Limited permission is given to registered SXT users to modify this
  346. '    file for their own personal use only. This file may not be used for any
  347. '    purpose other than in conjunction with the SXT software package.
  348. '    THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
  349. '    EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THE
  350. '    IMPLIED WARRANTIES OF MERCHANTIBILITY OR FITNESS FOR A PARTICULAR
  351. '    PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
  352. '    PROGRAM AND DOCUMENTATION IS WITH YOU.
  353. '    written by: Juergen Mueller, Aldingerstrasse 22, D-70806 Kornwestheim,
  354. '                GERMANY
  355. '/***************************************************************************/
  356. '**** CFT declarations ****
  357. #If Win32 Then
  358. Private Declare Function cftnGetLocation Lib "cftn32.dll" (ByVal dbfname$, ByVal searchname$, ByVal location$) As Long
  359. Private Declare Function cftnGetFirstName Lib "cftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  360. Private Declare Function cftnGetNextName Lib "cftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  361. Private Declare Function cftnGetFirstDefName Lib "cftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  362. Private Declare Function cftnGetNextDefName Lib "cftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  363. Private Declare Function cftnGetFirstCalledItem Lib "cftn32.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  364. Private Declare Function cftnGetNextCalledItem Lib "cftn32.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  365. Private Declare Function cftnGetFirstFile Lib "cftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  366. Private Declare Function cftnGetNextFile Lib "cftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  367. #Else
  368. Private Declare Function cftnGetLocation Lib "cftn16.dll" (ByVal dbfname$, ByVal searchname$, ByVal location$) As Long
  369. Private Declare Function cftnGetFirstName Lib "cftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  370. Private Declare Function cftnGetNextName Lib "cftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  371. Private Declare Function cftnGetFirstDefName Lib "cftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  372. Private Declare Function cftnGetNextDefName Lib "cftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  373. Private Declare Function cftnGetFirstCalledItem Lib "cftn16.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  374. Private Declare Function cftnGetNextCalledItem Lib "cftn16.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  375. Private Declare Function cftnGetFirstFile Lib "cftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  376. Private Declare Function cftnGetNextFile Lib "cftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  377. #End If
  378. '**** CST declarations ****
  379. #If Win32 Then
  380. Private Declare Function cstnGetLocation Lib "cstn32.dll" (ByVal dbfname$, ByVal searchname$, ByVal location$) As Long
  381. Private Declare Function cstnGetFirstName Lib "cstn32.dll" (ByVal dbfname$, ByVal location$) As Long
  382. Private Declare Function cstnGetNextName Lib "cstn32.dll" (ByVal dbfname$, ByVal location$) As Long
  383. Private Declare Function cstnGetFirstDefName Lib "cstn32.dll" (ByVal dbfname$, ByVal location$) As Long
  384. Private Declare Function cstnGetNextDefName Lib "cstn32.dll" (ByVal dbfname$, ByVal location$) As Long
  385. Private Declare Function cstnGetFirstCalledItem Lib "cstn32.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  386. Private Declare Function cstnGetNextCalledItem Lib "cstn32.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  387. Private Declare Function cstnGetFirstFile Lib "cstn32.dll" (ByVal dbfname$, ByVal location$) As Long
  388. Private Declare Function cstnGetNextFile Lib "cstn32.dll" (ByVal dbfname$, ByVal location$) As Long
  389. #Else
  390. Private Declare Function cstnGetLocation Lib "cstn16.dll" (ByVal dbfname$, ByVal searchname$, ByVal location$) As Long
  391. Private Declare Function cstnGetFirstName Lib "cstn16.dll" (ByVal dbfname$, ByVal location$) As Long
  392. Private Declare Function cstnGetNextName Lib "cstn16.dll" (ByVal dbfname$, ByVal location$) As Long
  393. Private Declare Function cstnGetFirstDefName Lib "cstn16.dll" (ByVal dbfname$, ByVal location$) As Long
  394. Private Declare Function cstnGetNextDefName Lib "cstn16.dll" (ByVal dbfname$, ByVal location$) As Long
  395. Private Declare Function cstnGetFirstCalledItem Lib "cstn16.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  396. Private Declare Function cstnGetNextCalledItem Lib "cstn16.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  397. Private Declare Function cstnGetFirstFile Lib "cstn16.dll" (ByVal dbfname$, ByVal location$) As Long
  398. Private Declare Function cstnGetNextFile Lib "cstn16.dll" (ByVal dbfname$, ByVal location$) As Long
  399. #End If
  400. '**** DFT declarations ****
  401. #If Win32 Then
  402. Private Declare Function dftnGetLocation Lib "dftn32.dll" (ByVal dbfname$, ByVal searchname$, ByVal location$) As Long
  403. Private Declare Function dftnGetFirstName Lib "dftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  404. Private Declare Function dftnGetNextName Lib "dftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  405. Private Declare Function dftnGetFirstDefName Lib "dftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  406. Private Declare Function dftnGetNextDefName Lib "dftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  407. Private Declare Function dftnGetFirstCalledItem Lib "dftn32.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  408. Private Declare Function dftnGetNextCalledItem Lib "dftn32.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  409. Private Declare Function dftnGetFirstFile Lib "dftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  410. Private Declare Function dftnGetNextFile Lib "dftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  411. #Else
  412. Private Declare Function dftnGetLocation Lib "dftn16.dll" (ByVal dbfname$, ByVal searchname$, ByVal location$) As Long
  413. Private Declare Function dftnGetFirstName Lib "dftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  414. Private Declare Function dftnGetNextName Lib "dftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  415. Private Declare Function dftnGetFirstDefName Lib "dftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  416. Private Declare Function dftnGetNextDefName Lib "dftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  417. Private Declare Function dftnGetFirstCalledItem Lib "dftn16.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  418. Private Declare Function dftnGetNextCalledItem Lib "dftn16.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  419. Private Declare Function dftnGetFirstFile Lib "dftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  420. Private Declare Function dftnGetNextFile Lib "dftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  421. #End If
  422. '**** FFT declarations ****
  423. #If Win32 Then
  424. Private Declare Function fftnGetLocation Lib "fftn32.dll" (ByVal dbfname$, ByVal searchname$, ByVal location$) As Long
  425. Private Declare Function fftnGetFirstName Lib "fftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  426. Private Declare Function fftnGetNextName Lib "fftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  427. Private Declare Function fftnGetFirstDefName Lib "fftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  428. Private Declare Function fftnGetNextDefName Lib "fftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  429. Private Declare Function fftnGetFirstCalledItem Lib "fftn32.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  430. Private Declare Function fftnGetNextCalledItem Lib "fftn32.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  431. Private Declare Function fftnGetFirstFile Lib "fftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  432. Private Declare Function fftnGetNextFile Lib "fftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  433. #Else
  434. Private Declare Function fftnGetLocation Lib "fftn16.dll" (ByVal dbfname$, ByVal searchname$, ByVal location$) As Long
  435. Private Declare Function fftnGetFirstName Lib "fftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  436. Private Declare Function fftnGetNextName Lib "fftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  437. Private Declare Function fftnGetFirstDefName Lib "fftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  438. Private Declare Function fftnGetNextDefName Lib "fftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  439. Private Declare Function fftnGetFirstCalledItem Lib "fftn16.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  440. Private Declare Function fftnGetNextCalledItem Lib "fftn16.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  441. Private Declare Function fftnGetFirstFile Lib "fftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  442. Private Declare Function fftnGetNextFile Lib "fftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  443. #End If
  444. '**** LFT declarations ****
  445. #If Win32 Then
  446. Private Declare Function lftnGetLocation Lib "lftn32.dll" (ByVal dbfname$, ByVal searchname$, ByVal location$) As Long
  447. Private Declare Function lftnGetFirstName Lib "lftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  448. Private Declare Function lftnGetNextName Lib "lftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  449. Private Declare Function lftnGetFirstDefName Lib "lftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  450. Private Declare Function lftnGetNextDefName Lib "lftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  451. Private Declare Function lftnGetFirstCalledItem Lib "lftn32.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  452. Private Declare Function lftnGetNextCalledItem Lib "lftn32.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  453. Private Declare Function lftnGetFirstFile Lib "lftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  454. Private Declare Function lftnGetNextFile Lib "lftn32.dll" (ByVal dbfname$, ByVal location$) As Long
  455. #Else
  456. Private Declare Function lftnGetLocation Lib "lftn16.dll" (ByVal dbfname$, ByVal searchname$, ByVal location$) As Long
  457. Private Declare Function lftnGetFirstName Lib "lftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  458. Private Declare Function lftnGetNextName Lib "lftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  459. Private Declare Function lftnGetFirstDefName Lib "lftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  460. Private Declare Function lftnGetNextDefName Lib "lftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  461. Private Declare Function lftnGetFirstCalledItem Lib "lftn16.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  462. Private Declare Function lftnGetNextCalledItem Lib "lftn16.dll" (ByVal dbfname$, ByVal caller$, ByVal calleditem$, ByVal location$) As Long
  463. Private Declare Function lftnGetFirstFile Lib "lftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  464. Private Declare Function lftnGetNextFile Lib "lftn16.dll" (ByVal dbfname$, ByVal location$) As Long
  465. #End If
  466. '**** global flag ****
  467. Dim actflag As Integer
  468. Private Sub Command1_Click()
  469.     End
  470. End Sub
  471. Private Sub Command2_Click()
  472.   Dim dbfname As String
  473.   Dim searchname As String
  474.   Dim result As String
  475.   result = String$(300, 0)
  476.   dbfname = label1.Caption
  477.   searchname = text1.Text
  478.   If Left(dbfname$, 1) <> "" And Left(searchname$, 1) <> "" Then
  479.     retval = sxtnGetLocation(dbfname$, searchname$, result$)
  480.     label7.Caption = result$
  481.   End If
  482. End Sub
  483. Private Sub Command3_Click()
  484.   Dim string1 As String
  485.   Dim result As String
  486.   string1$ = label1.Caption
  487.   result = String$(300, 0)
  488.   list2.Clear
  489.   actflag = True
  490.   If Left(string1$, 1) <> "" Then
  491.     label6.Caption = "working ..."
  492.     retval = sxtnGetFirstFile(string1$, result$)
  493.     If retval = 101 Then
  494.       list2.AddItem result$
  495.       Do
  496.         retval = sxtnGetNextFile(string1$, result$)
  497.         If retval = 101 Then
  498.           list2.AddItem result$
  499.         Else
  500.           Exit Do
  501.         End If
  502.       Loop While retval = 101 And actflag = True
  503.     End If
  504.   End If
  505.   label6.Caption = Str$(list2.ListCount) + " files"
  506. End Sub
  507. Private Sub Command4_Click()
  508.   Dim dbfname As String
  509.   Dim result As String
  510.   dbfname$ = label1.Caption
  511.   result = String$(300, 0)
  512.   list1.Clear
  513.   actflag = True
  514.   If Left(dbfname$, 1) <> "" Then
  515.     label5.Caption = "working ..."
  516.     retval = sxtnGetFirstName(dbfname$, result$)
  517.     If retval = 101 Then
  518.       list1.AddItem result$
  519.       Do
  520.         retval = sxtnGetNextName(dbfname$, result$)
  521.         If retval = 101 Then
  522.           list1.AddItem result$
  523.         Else
  524.           Exit Do
  525.         End If
  526.       Loop While retval = 101 And actflag = True
  527.     End If
  528.   End If
  529.   label5.Caption = Str$(list1.ListCount) + " items"
  530. End Sub
  531. Private Sub Command5_Click()
  532.   Dim dbfname As String
  533.   Dim result As String
  534.   dbfname$ = label1.Caption
  535.   result = String$(300, 0)
  536.   list1.Clear
  537.   actflag = True
  538.   If Left(dbfname$, 1) <> "" Then
  539.     label5.Caption = "working ..."
  540.     retval = sxtnGetFirstDefName(dbfname$, result$)
  541.     If retval = 101 Then
  542.       list1.AddItem result$
  543.       Do
  544.         retval = sxtnGetNextDefName(dbfname$, result$)
  545.         If retval = 101 Then
  546.           list1.AddItem result$
  547.         Else
  548.           Exit Do
  549.         End If
  550.       Loop While retval = 101 And actflag = True
  551.     End If
  552.   End If
  553.   label5.Caption = Str$(list1.ListCount) + " defined items"
  554. End Sub
  555. Private Sub Command6_Click()
  556.   Dim dbfname As String
  557.   Dim caller As String
  558.   Dim location As String
  559.   Dim calleditem As String
  560.   dbfname$ = label1.Caption
  561.   calleditem = String$(300, 0)
  562.   location = String$(300, 0)
  563.   caller = text1.Text
  564.   list1.Clear
  565.   actflag = True
  566.   If Left(dbfname$, 1) <> "" Then
  567.     label5.Caption = "working ..."
  568.     retval = sxtnGetFirstCalledItem(dbfname$, caller$, calleditem$, location$)
  569.     If retval = 101 Then
  570.       list1.AddItem calleditem$
  571.       Do
  572.         retval = sxtnGetNextCalledItem(dbfname$, caller$, calleditem$, location$)
  573.         If retval = 101 Then
  574.           list1.AddItem calleditem$
  575.         Else
  576.           Exit Do
  577.         End If
  578.       Loop While retval = 101 And actflag = True
  579.     End If
  580.   End If
  581.   label5.Caption = Str$(list1.ListCount) + " called items"
  582. End Sub
  583. Private Sub Command7_Click()
  584.   actflag = False
  585. End Sub
  586. Private Sub Dir1_Change()
  587. ' When directory is changed, update path in Files control.
  588.     file1.Path = Dir1.Path
  589. End Sub
  590. Private Sub Drive1_Change()
  591. ' When drive is changed, update directory control.
  592. ' (This also causes a Change event for the directory control).
  593.        Dir1.Path = Drive1.Drive
  594. End Sub
  595. Private Sub File1_DblClick()
  596. ' When at the root level (for example, C:\) the Path property
  597. ' has a backslash (\) at the end.  When at any other level,
  598. ' there is no final \.  This code handles either case to build
  599. ' the complete path and filename of the selected file.
  600.   If Right(file1.Path, 1) <> "\" Then
  601.     label1.Caption = file1.Path & "\" & file1.filename
  602.   Else
  603.     label1.Caption = file1.Path & file1.filename
  604.   End If
  605. End Sub
  606. Private Sub Form_Load()
  607. ' Set drive and path for controls to drive
  608. ' and directory where this application is located.
  609.     Drive1.Drive = App.Path
  610.     Dir1.Path = App.Path
  611. End Sub
  612. Private Sub List1_DblClick()
  613.   Dim dbfname As String
  614.   Dim searchname As String
  615.   Dim result As String
  616.   result = String$(300, 0)
  617.   dbfname = label1.Caption
  618.   searchname = list1.List(list1.ListIndex)
  619.   If Left(dbfname$, 1) <> "" And Left(searchname$, 1) <> "" Then
  620.     retval = sxtnGetLocation(dbfname$, searchname$, result$)
  621.     label7.Caption = result$
  622.     text1.Text = searchname
  623.   End If
  624. End Sub
  625. Private Sub List2_DblClick()
  626.   Dim dbfname As String
  627.   Dim searchname As String
  628.   Dim result As String
  629.   dbfname$ = label1.Caption
  630.   result = String$(300, 0)
  631.   filename = list2.List(list2.ListIndex)
  632.   list1.Clear
  633.   If Left(dbfname$, 1) <> "" Then
  634.     label5.Caption = "working ..."
  635.     retval = sxtnGetFirstDefName(dbfname$, result$)
  636.     If retval = 101 Then
  637.       searchname = Left$(result, InStr(1, result, Chr$(0), 1) - 1)
  638.       result = String$(300, 0)
  639.       retval = sxtnGetLocation(dbfname$, searchname$, result$)
  640.       If retval = 101 Then
  641.         If InStr(1, result, filename, 1) Then
  642.           list1.AddItem searchname$
  643.         End If
  644.       End If
  645.     End If
  646.     Do
  647.       retval = sxtnGetNextDefName(dbfname$, result$)
  648.       If retval = 101 Then
  649.         searchname = Left$(result, InStr(1, result, Chr$(0), 1) - 1)
  650.         result = String$(300, 0)
  651.         retval = sxtnGetLocation(dbfname$, searchname$, result$)
  652.         If retval = 101 Then
  653.           If InStr(1, result, filename, 1) Then
  654.             list1.AddItem searchname$
  655.           End If
  656.         End If
  657.       Else
  658.         Exit Do
  659.       End If
  660.     Loop While retval = 101
  661.   End If
  662.   label5.Caption = Str$(list1.ListCount) + " defined items in " + filename
  663. End Sub
  664. Private Function sxtnGetFirstCalledItem(dbfname$, caller$, calleditem$, location$) As Long
  665.   If option1.Value = True Then
  666.     sxtnGetFirstCalledItem = cftnGetFirstCalledItem(dbfname, caller, calleditem, location)
  667.   ElseIf option2.Value = True Then
  668.     sxtnGetFirstCalledItem = cstnGetFirstCalledItem(dbfname, caller, calleditem, location)
  669.   ElseIf option3.Value = True Then
  670.     sxtnGetFirstCalledItem = dftnGetFirstCalledItem(dbfname, caller, calleditem, location)
  671.   ElseIf option4.Value = True Then
  672.     sxtnGetFirstCalledItem = fftnGetFirstCalledItem(dbfname, caller, calleditem, location)
  673.   ElseIf option5.Value = True Then
  674.     sxtnGetFirstCalledItem = lftnGetFirstCalledItem(dbfname, caller, calleditem, location)
  675.   End If
  676. End Function
  677. Private Function sxtnGetFirstDefName(dbfname$, location$) As Long
  678.   If option1.Value = True Then
  679.     sxtnGetFirstDefName = cftnGetFirstDefName(dbfname, location)
  680.   ElseIf option2.Value = True Then
  681.     sxtnGetFirstDefName = cstnGetFirstDefName(dbfname, location)
  682.   ElseIf option3.Value = True Then
  683.     sxtnGetFirstDefName = dftnGetFirstDefName(dbfname, location)
  684.   ElseIf option4.Value = True Then
  685.     sxtnGetFirstDefName = fftnGetFirstDefName(dbfname, location)
  686.   ElseIf option5.Value = True Then
  687.     sxtnGetFirstDefName = lftnGetFirstDefName(dbfname, location)
  688.   End If
  689. End Function
  690. Private Function sxtnGetFirstFile(dbfname$, location$) As Long
  691.   If option1.Value = True Then
  692.     sxtnGetFirstFile = cftnGetFirstFile(dbfname, location)
  693.   ElseIf option2.Value = True Then
  694.     sxtnGetFirstFile = cstnGetFirstFile(dbfname, location)
  695.   ElseIf option3.Value = True Then
  696.     sxtnGetFirstFile = dftnGetFirstFile(dbfname, location)
  697.   ElseIf option4.Value = True Then
  698.     sxtnGetFirstFile = fftnGetFirstFile(dbfname, location)
  699.   ElseIf option5.Value = True Then
  700.     sxtnGetFirstFile = lftnGetFirstFile(dbfname, location)
  701.   End If
  702. End Function
  703. Private Function sxtnGetFirstName(dbfname$, location$) As Long
  704.   If option1.Value = True Then
  705.     sxtnGetFirstName = cftnGetFirstName(dbfname, location)
  706.   ElseIf option2.Value = True Then
  707.     sxtnGetFirstName = cstnGetFirstName(dbfname, location)
  708.   ElseIf option3.Value = True Then
  709.     sxtnGetFirstName = dftnGetFirstName(dbfname, location)
  710.   ElseIf option4.Value = True Then
  711.     sxtnGetFirstName = fftnGetFirstName(dbfname, location)
  712.   ElseIf option5.Value = True Then
  713.     sxtnGetFirstName = lftnGetFirstName(dbfname, location)
  714.   End If
  715. End Function
  716. Private Function sxtnGetLocation(dbfname$, searchname$, location$) As Long
  717.   If option1.Value = True Then
  718.     sxtnGetLocation = cftnGetLocation(dbfname, searchname, location)
  719.   ElseIf option2.Value = True Then
  720.     sxtnGetLocation = cstnGetLocation(dbfname, searchname, location)
  721.   ElseIf option3.Value = True Then
  722.     sxtnGetLocation = dftnGetLocation(dbfname, searchname, location)
  723.   ElseIf option4.Value = True Then
  724.     sxtnGetLocation = fftnGetLocation(dbfname, searchname, location)
  725.   ElseIf option5.Value = True Then
  726.     sxtnGetLocation = lftnGetLocation(dbfname, searchname, location)
  727.   End If
  728. End Function
  729. Private Function sxtnGetNextCalledItem(dbfname$, caller$, calleditem$, location$) As Long
  730.   If option1.Value = True Then
  731.     sxtnGetNextCalledItem = cftnGetNextCalledItem(dbfname, caller, calleditem, location)
  732.   ElseIf option2.Value = True Then
  733.     sxtnGetNextCalledItem = cstnGetNextCalledItem(dbfname, caller, calleditem, location)
  734.   ElseIf option3.Value = True Then
  735.     sxtnGetNextCalledItem = dftnGetNextCalledItem(dbfname, caller, calleditem, location)
  736.   ElseIf option4.Value = True Then
  737.     sxtnGetNextCalledItem = fftnGetNextCalledItem(dbfname, caller, calleditem, location)
  738.   ElseIf option5.Value = True Then
  739.     sxtnGetNextCalledItem = lftnGetNextCalledItem(dbfname, caller, calleditem, location)
  740.   End If
  741. End Function
  742. Private Function sxtnGetNextDefName(dbfname$, location$) As Long
  743.   If option1.Value = True Then
  744.     sxtnGetNextDefName = cftnGetNextDefName(dbfname, location)
  745.   ElseIf option2.Value = True Then
  746.     sxtnGetNextDefName = cstnGetNextDefName(dbfname, location)
  747.   ElseIf option3.Value = True Then
  748.     sxtnGetNextDefName = dftnGetNextDefName(dbfname, location)
  749.   ElseIf option4.Value = True Then
  750.     sxtnGetNextDefName = fftnGetNextDefName(dbfname, location)
  751.   ElseIf option5.Value = True Then
  752.     sxtnGetNextDefName = lftnGetNextDefName(dbfname, location)
  753.   End If
  754. End Function
  755. Private Function sxtnGetNextFile(dbfname$, location$) As Long
  756.   If option1.Value = True Then
  757.     sxtnGetNextFile = cftnGetNextFile(dbfname, location)
  758.   ElseIf option2.Value = True Then
  759.     sxtnGetNextFile = cstnGetNextFile(dbfname, location)
  760.   ElseIf option3.Value = True Then
  761.     sxtnGetNextFile = dftnGetNextFile(dbfname, location)
  762.   ElseIf option4.Value = True Then
  763.     sxtnGetNextFile = fftnGetNextFile(dbfname, location)
  764.   ElseIf option5.Value = True Then
  765.     sxtnGetNextFile = lftnGetNextFile(dbfname, location)
  766.   End If
  767. End Function
  768. Private Function sxtnGetNextName(dbfname$, location$) As Long
  769.   If option1.Value = True Then
  770.     sxtnGetNextName = cftnGetNextName(dbfname, location)
  771.   ElseIf option2.Value = True Then
  772.     sxtnGetNextName = cstnGetNextName(dbfname, location)
  773.   ElseIf option3.Value = True Then
  774.     sxtnGetNextName = dftnGetNextName(dbfname, location)
  775.   ElseIf option4.Value = True Then
  776.     sxtnGetNextName = fftnGetNextName(dbfname, location)
  777.   ElseIf option5.Value = True Then
  778.     sxtnGetNextName = lftnGetNextName(dbfname, location)
  779.   End If
  780. End Function
  781.